'use strict';

var _interopRequireDefault = require('@babel/runtime/helpers/interopRequireDefault');
Object.defineProperty(exports, '__esModule', {
  value: true,
});
exports.default = void 0;
var _objectSpread2 = _interopRequireDefault(require('@babel/runtime/helpers/objectSpread2'));
var _react = _interopRequireDefault(require('react'));
var _antd = require('antd');
var _createField = _interopRequireDefault(require('../../createField'));
var _FieldContext = require('../../contexts/FieldContext');
var Password = function Password(props) {
  var _useFieldContext = (0, _FieldContext.useFieldContext)(),
    label = _useFieldContext.label;
  return /*#__PURE__*/ _react.default.createElement(
    _antd.Input.Password,
    (0, _objectSpread2.default)(
      {
        placeholder: '\u8BF7\u8F93\u5165'.concat(label),
      },
      props,
    ),
  );
};
var _default = (0, _createField.default)(Password);
exports.default = _default;
